package ooday2;

public class Doctor extends Person{
 String title;
 Doctor(String name,int age,String address,String title){
     super(name,age,address);
     this.title=title;
 }
 void cut(){
     System.out.println("年龄为"+age+"的"+name+"医生正在做手术");
 }
 void sayHi(){
     System.out.println("你好我是"+name+"今年"+age+"岁家住"+address+"目前已经是"+title);
 }

}
